<div class="grid_3 alpha"><input id="create" value="Crear Tipo de Campo" type="button" onclick="window.location = '/typecampos/edit/0';"/></div>
<div class="grid_6 omega" style="text-align:right;">
    <?php echo $paginator->prev()." ["; ?>
    <?php echo $paginator->numbers(); ?>
    <?php echo "] ".$paginator->next(); ?>
    <?php echo "&nbsp;&nbsp;[".$paginator->counter()."]"; ?>
</div>
<div class="clear"></div>


<?php echo $this->Form->create('Typecampos', array('url' => array('controller' => 'typecampos', 'action' => 'delete'),'inputDefaults' => array('label' => false, 'div' => false))); ?>
    <br />
    <table width="100%">
        <thead>
            <tr>
                <th width="30">Select</th>
                <th width="20"><?php echo $this->Paginator->sort('id');?></th>
                <th><?php echo $this->Paginator->sort('name');?></th>
            </tr>
        </thead>
        <tbody>
        
    	<?php $i = 0;
    	foreach ($typecampos as $typecampo):
    		$class = null;
    		if ($i++ % 2 == 0) { $class = ' class="altrow"'; }
    	?>
            <tr>
                <td><input name="data[Delete][<?php echo $typecampo['Typecampo']['id'];?>]" value="1" id="Delete<?php echo $typecampo['Typecampo']['id'];?>" type="checkbox"/></td>
                <td><?php echo $typecampo['Typecampo']['id']; ?>&nbsp;</td>
                <td>
                    <?php echo $this->Html->link($typecampo['Typecampo']['name'],
                                array('controller' => 'typecampos', 'action' => 'edit/'.$typecampo['Typecampo']['id'])); ?> 
                </td>                
            </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
    
<br />    
<div class="clear"></div>

<div class="grid_3 alpha"><input name="delete" id="delete" value="Eliminar Seleccionados" type="submit" onclick="return confirm('Est&aacute; seguro de eliminar esos registros?');"/></div>
<div class="grid_6 omega" style="text-align:right;">
    <?php echo $paginator->prev()." ["; ?>
    <?php echo $paginator->numbers(); ?>
    <?php echo "] ".$paginator->next(); ?>
    <?php echo "&nbsp;&nbsp;[".$paginator->counter()."]"; ?>
</div>
<div class="clear"></div>
<br />
<div class="grid_3 alpha"><input id="create" value="Crear Tipo de Campo" type="button" onclick="window.location = '/typecampos/edit/0';"/></div>
<div class="clear"></div>
    
</form>